#!/bin/bash
# liwl@nsccwx

# 菜单脚本
# 
function firstFunc(){
	echo "This is the first function."
}
function secondeFunc(){
	echo 
}
function thirdFunc(){
	echo 
}

function show(){
echo "
---------------------------
'1': 执行函数1
'2': 执行函数2
'3': 执行函数3
'q': 退出
---------------------------
"
}
function menu(){
while true
do
	show
	read -p "输入你的选项:" OPT
	case ${OPT} in
	1)
		firstFunc;;
	2)
		secondeFunc;;
	3)
		thirdFunc;;
	q)	
		exit 0;;
	*) 
		;;
	esac
done
}

menu
